package applet;

import java.util.ArrayList;

public class Country implements Comparable<Country> {

	public String name;
	double latitude;
	double longitude;
	String capitol;
	int time_zone;
	
	ArrayList<Integer> hours_counts;
	
	public Country(String n, double la, double lo, String c, int tz){
		name = n;
		latitude = la;
		longitude = lo;
		capitol = c;
		time_zone = tz;
		hours_counts = new ArrayList<Integer>(24);
		for (int i = 0; i < 24; i++) {
			hours_counts.add(0);
		}
	}
	
	public void addCount(int hour, int count){
		hours_counts.set(hour, count);
	}
	
	public boolean equals(Country c){
		return name == c.name;
	}

	public int compareTo(Country c) {
		return name.compareTo(c.name);
	}
}
